package com.ys.entity.finance;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCW_PointTransfer", catalog="Id")
public class TcwPointTransfer extends BaseEntity<TcwPointTransfer> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
	private String bid;
	@YsField(nameDataBase="UserIdFrom", nameJava="userIdFrom", typeDataBase="varchar")
	private String userIdFrom;
	@YsField(nameDataBase="UserNameFrom", nameJava="userNameFrom", typeDataBase="varchar")
	private String userNameFrom;
	@YsField(nameDataBase="Point", nameJava="point", typeDataBase="decimal")
	private BigDecimal point;
	@YsField(nameDataBase="UserIdTo", nameJava="userIdTo", typeDataBase="varchar")
	private String userIdTo;
	@YsField(nameDataBase="UserNameTo", nameJava="userNameTo", typeDataBase="varchar")
	private String userNameTo;
	@YsField(nameDataBase="EffectStock", nameJava="effectStock", typeDataBase="tinyint")
	private Integer effectStock;
	@YsField(nameDataBase="RunningItem", nameJava="runningItem", typeDataBase="varchar")
	private String runningItem;
	@YsField(nameDataBase="RunningItemSub", nameJava="runningItemSub", typeDataBase="varchar")
	private String runningItemSub;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcwPointTransfer setId(Long id) {
		this.id = id;
		return this;
	}
	public String getBid() {
		return bid;
	}
	public TcwPointTransfer setBid(String bid) {
		this.bid = bid;
		return this;
	}
	public String getUserIdFrom() {
		return userIdFrom;
	}
	public TcwPointTransfer setUserIdFrom(String userIdFrom) {
		this.userIdFrom = userIdFrom;
		return this;
	}
	public String getUserNameFrom() {
		return userNameFrom;
	}
	public TcwPointTransfer setUserNameFrom(String userNameFrom) {
		this.userNameFrom = userNameFrom;
		return this;
	}
	public BigDecimal getPoint() {
		return point;
	}
	public TcwPointTransfer setPoint(BigDecimal point) {
		this.point = point;
		return this;
	}
	public String getUserIdTo() {
		return userIdTo;
	}
	public TcwPointTransfer setUserIdTo(String userIdTo) {
		this.userIdTo = userIdTo;
		return this;
	}
	public String getUserNameTo() {
		return userNameTo;
	}
	public TcwPointTransfer setUserNameTo(String userNameTo) {
		this.userNameTo = userNameTo;
		return this;
	}
	public Integer getEffectStock() {
		return effectStock;
	}
	public TcwPointTransfer setEffectStock(Integer effectStock) {
		this.effectStock = effectStock;
		return this;
	}
	public String getRunningItem() {
		return runningItem;
	}
	public TcwPointTransfer setRunningItem(String runningItem) {
		this.runningItem = runningItem;
		return this;
	}
	public String getRunningItemSub() {
		return runningItemSub;
	}
	public TcwPointTransfer setRunningItemSub(String runningItemSub) {
		this.runningItemSub = runningItemSub;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcwPointTransfer setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcwPointTransfer setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcwPointTransfer setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcwPointTransfer tcwPointTransfer(
		String bid,
		String userIdFrom,
		String userNameFrom,
		BigDecimal point,
		String userIdTo,
		String userNameTo,
		Integer effectStock,
		String runningItem,
		String runningItemSub,
		Integer status
			) {
		TcwPointTransfer entity = new TcwPointTransfer();
		entity.setBid(bid);
		entity.setUserIdFrom(userIdFrom);
		entity.setUserNameFrom(userNameFrom);
		entity.setPoint(point);
		entity.setUserIdTo(userIdTo);
		entity.setUserNameTo(userNameTo);
		entity.setEffectStock(effectStock);
		entity.setRunningItem(runningItem);
		entity.setRunningItemSub(runningItemSub);
		entity.setStatus(status);
		return entity;
	}
}